<?php

namespace app\admin\validate;

use think\validate;

class login extends Validate
{
	protected $rule = [
		['user', 'require|max:15|token', '用户名字不能为空|名字不能超过15个字符'],
        ['pwd', 'require|max:15', '密码不能为空|密码不能超过15个字符'],
		['verify', 'captcha|验证码', 'require|captcha'],
	];

	protected $scene = [
		'msg'  =>  ['pwd'],
	];
}